package xa.woniu.entity;

import java.io.Serializable;

/**
 * bill
 * @author 
 */
public class Bill implements Serializable {
    private Integer bid;

    private Integer buid;

    private Integer bflag;

    private Integer bamount;

    private String bdate;

    private String bpaytype;

    private Integer bstate;

    private static final long serialVersionUID = 1L;

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public Integer getBuid() {
        return buid;
    }

    public void setBuid(Integer buid) {
        this.buid = buid;
    }

    public Integer getBflag() {
        return bflag;
    }

    public void setBflag(Integer bflag) {
        this.bflag = bflag;
    }

    public Integer getBamount() {
        return bamount;
    }

    public void setBamount(Integer bamount) {
        this.bamount = bamount;
    }

    public String getBdate() {
        return bdate;
    }

    public void setBdate(String bdate) {
        this.bdate = bdate;
    }

    public String getBpaytype() {
        return bpaytype;
    }

    public void setBpaytype(String bpaytype) {
        this.bpaytype = bpaytype;
    }

    public Integer getBstate() {
        return bstate;
    }

    public void setBstate(Integer bstate) {
        this.bstate = bstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Bill other = (Bill) that;
        return (this.getBid() == null ? other.getBid() == null : this.getBid().equals(other.getBid()))
            && (this.getBuid() == null ? other.getBuid() == null : this.getBuid().equals(other.getBuid()))
            && (this.getBflag() == null ? other.getBflag() == null : this.getBflag().equals(other.getBflag()))
            && (this.getBamount() == null ? other.getBamount() == null : this.getBamount().equals(other.getBamount()))
            && (this.getBdate() == null ? other.getBdate() == null : this.getBdate().equals(other.getBdate()))
            && (this.getBpaytype() == null ? other.getBpaytype() == null : this.getBpaytype().equals(other.getBpaytype()))
            && (this.getBstate() == null ? other.getBstate() == null : this.getBstate().equals(other.getBstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBid() == null) ? 0 : getBid().hashCode());
        result = prime * result + ((getBuid() == null) ? 0 : getBuid().hashCode());
        result = prime * result + ((getBflag() == null) ? 0 : getBflag().hashCode());
        result = prime * result + ((getBamount() == null) ? 0 : getBamount().hashCode());
        result = prime * result + ((getBdate() == null) ? 0 : getBdate().hashCode());
        result = prime * result + ((getBpaytype() == null) ? 0 : getBpaytype().hashCode());
        result = prime * result + ((getBstate() == null) ? 0 : getBstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bid=").append(bid);
        sb.append(", buid=").append(buid);
        sb.append(", bflag=").append(bflag);
        sb.append(", bamount=").append(bamount);
        sb.append(", bdate=").append(bdate);
        sb.append(", bpaytype=").append(bpaytype);
        sb.append(", bstate=").append(bstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}